
from django.conf.urls import url
from django.contrib import admin
from . import views
from rest_framework_jwt.views import obtain_jwt_token
urlpatterns = [
    # 注册
    url(r'^users/$', views.UserCrateView.as_view()),
    # 登录认证
    url(r'^authorizations/$', obtain_jwt_token),
    # 用户中心
    url(r'^user/$', views.UserInfoView.as_view()),
    # 修改密码
    url(r'^user/password/$', views.UserPasswordView.as_view()),
    # 关注与取消
    url(r'^users/like/(?P<id>[^/.]+)/$', views.UserLikeView.as_view()),
    # 修改标签
    url(r'^user/label/$', views.UserLabelView.as_view()),
]
